import request from '@/utils/request'
export default {
  //查询列表
  list() {
    return request({
      url: '/admin/core/integralGrade/list',
      method: 'get'
    })
  },
  //删除
  removeById(id) {
    return request({
      url: `/admin/core/integralGrade/remove/${id}`,
      method: 'delete'
    })
  },
  //新增积分等级
  save(integralGrade) {
    return request({
      url: '/admin/core/integralGrade/save',
      method: 'post',
      data: integralGrade
    })
  },
  //根据id查询
  getById(id) {
    return request({
      url: `/admin/core/integralGrade/get/${id}`,
      method: 'get'
    })
  },
  //修改积分等级
  updateById(integralGrade) {
    return request({
      url: '/admin/core/integralGrade/update',
      method: 'put',
      data: integralGrade
    })
  }
}
